package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.pojo.Dialog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DialogMapper extends BaseMapper<Dialog> {
    @Select("select * from dialog where connection_id=#{id}")
    List<Dialog> getDialogs(int id);

}
